package com.ssy.lingxi.after.sale.model.vo.request;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 换货：供应商手工发货新VO
 * @author 伍将
 * @date 2020/12/4
 * @version 2.0.0
 */
public class ManualDeliveryGoodsAddVO implements Serializable {

    private static final long serialVersionUID = -202524580619536820L;
    /**
     * 换货id
     */
    @NotNull(message = "换货id要大于0")
    @Positive(message = "换货id要大于0")
    private Long replaceId;

    /**
     * 发货地址
     */
    @NotBlank(message = "发货地址不能为空")
    private String deliveryAddress;

    /**
     * 发货时间
     */
    @NotNull(message = "发货时间不能为空")
    private Long deliveryTime;

    /**
     * 物流单号
     */
    private String logisticsOrderNo;

    /**
     * 物流公司
     */
    private String logisticsName;

    /**
     * 换货发货商品数量
     */
    @Valid
    @Size(min = 1,message = "换货发货商品信息必填")
    private List<ReplaceAddDeliveryGoodsProductVO> productList;

    public Long getReplaceId() {
        return replaceId;
    }

    public void setReplaceId(Long replaceId) {
        this.replaceId = replaceId;
    }

    public String getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(String deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public Long getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Long deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public String getLogisticsOrderNo() {
        return logisticsOrderNo;
    }

    public void setLogisticsOrderNo(String logisticsOrderNo) {
        this.logisticsOrderNo = logisticsOrderNo;
    }

    public String getLogisticsName() {
        return logisticsName;
    }

    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName;
    }

    public List<ReplaceAddDeliveryGoodsProductVO> getProductList() {
        return productList;
    }

    public void setProductList(List<ReplaceAddDeliveryGoodsProductVO> productList) {
        this.productList = productList;
    }
}
